package com.mdd.common.validate.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;


@Data
@ApiModel("商户wifi创建参数")
public class BusinessWiFiApplyValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "请输入商家名称")
    @ApiModelProperty(value = "名称")
    private String businessName;

    @NotNull(message = "请选择无线")
    @ApiModelProperty(value = "wifi名称 SSID")
    private String username;

    @NotNull(message = "请输入无线密码")
    @ApiModelProperty(value = "wifi 密码")
    private String password;

    @Length(min = 11, max = 11, message = "手机号只能为11位")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @NotNull(message = "请选择省")
    @ApiModelProperty(value = "省")
    private Integer provinceId;
    private String provinceName;

    @NotNull(message = "请选择市")
    @ApiModelProperty(value = "市")
    private Integer cityId;
    private String cityName;

    @NotNull(message = "请选择区")
    @ApiModelProperty(value = "区")
    private Integer districtId;
    private String districtName;

    @NotNull(message = "请选择地理位置")
    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;

    @ApiModelProperty(value = "微信号")
    private String wechat;

    @ApiModelProperty(value = "BSSID")
    private String bssId;

    private Integer userId;

}
